import { ResPage, DeviceOps, ResultData } from "@/api/interface/index";
import http from "@/api";

/**
 * @name 设备管理模块
 */
// 获取设备列表
export const getDeviceOpsList = (params: DeviceOps.ReqDeviceOpsParams) => {
  return http.post<ResPage<DeviceOps.ResDeviceOpsList>>(`/device/devOps/query`, params);
};
// 获取设备详情
export const getDeviceOpsDtl = (params: { deviceId: number }) => {
  return http.post<ResultData>(`/device/devOps/detail`, params);
};
